import {
	get,
	post
} from './http.js'
const PersonManager = {
	//添加单选题
	addSingle: (params) => post(`/question/single/addSingle`, params),
	//获取该用户的收藏目录
	collectionCatalogs: (pageNum, pageSize) => get("/collection-catalogs/" + pageNum + "/" + pageSize),
	Personposts: (pageNum, pageSize) => get("/posts/" + pageNum + "/" + pageSize),//获取用户发布的帖子
	//获取用户信息
	getUserInfo: () => get("/user/getUserInfo"),
	// 获取用户消息
	getUserMessage: (params) => get(`/messages/${params.type}/${params.pageNum}/${params.pageSize}`),
	//更改用户信息
	changeInfo:(parmas)=>post("/user/changeInfo",parmas),
	catalogsPost:(collectionCatalogId,pageNum,pageSize)=>get("/collection-catalogs/"+collectionCatalogId+"/posts/"+pageNum+"/"+pageSize)
}
export {
	PersonManager
};